package fr.ul.ade.secunde.ui;

import android.content.Context;
import android.content.Intent;
import android.preference.Preference;
import android.util.AttributeSet;
import fr.ul.ade.R;

public class LoadProjectsPreference
		extends Preference {

	public LoadProjectsPreference(Context context, AttributeSet attrs,
			int defStyle) {
		super(context, attrs, defStyle);
	}

	public LoadProjectsPreference(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public LoadProjectsPreference(Context context) {
		super(context);
	}

	@Override
	protected void onClick() {
		final Context context = this.getContext();
		final Intent loadPreferencesIntent = new Intent(context
				.getResources().getString(R.string.intent_action_get_projects));
		context.startService(loadPreferencesIntent);
	}

}// class LoadProjectsPreference